package com.kun.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kun.domain.FormData;
import com.kun.service.mapper.FormDataMapper;
import com.kun.service.service.IFormDataService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FormDataServiceImpl extends ServiceImpl<FormDataMapper, FormData> implements IFormDataService {

    /**
     * 查询动态表单数据
     */
    @Override
    public List<FormData> selectList(FormData formData) {
        String processInstanceId = formData.getProcessInstanceId();
        return lambdaQuery()
                .eq(processInstanceId != null, FormData::getProcessInstanceId, processInstanceId)
                .list();
    }
}
